package com.ruoyi.qsng.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分明细对象 k_integral_detailed
 *
 * @author kanglou
 * @date 2023-06-07
 */
@Data
@ApiModel("积分明细对象 k_integral_detailed")
public class KIntegralDetailed extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分类型对应数据字典k_integral_detailed_type */
    @Excel(name = "积分类型")
    @ApiModelProperty("积分类型对应数据字典k_integral_detailed_type")
    private String type;

    /** 人员id */
    @Excel(name = "人员id")
    @ApiModelProperty("人员id")
    private String userId;

    /** 人员姓名 */
    @Excel(name = "人员姓名")
    @ApiModelProperty("人员姓名")
    private String userName;

    /** 获得积分 */
    @Excel(name = "获得积分")
    @ApiModelProperty("获得积分")
    private Integer integral;

    /** 积分来源 */
    @Excel(name = "积分来源")
    @ApiModelProperty("积分来源")
    private String integralSource;

    /** 主键 */
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("具体浏览那个活动的id")
    private  String activityId;

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setIntegral(Integer integral)
    {
        this.integral = integral;
    }

    public Integer getIntegral()
    {
        return integral;
    }
    public void setIntegralSource(String integralSource)
    {
        this.integralSource = integralSource;
    }

    public String getIntegralSource()
    {
        return integralSource;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("type", getType())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("integral", getIntegral())
            .append("integralSource", getIntegralSource())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
